import { CSSTransition } from "react-transition-group";
import "./style.css";
import type { FC } from "react";
interface Props {
  visible: boolean;
  children: React.ReactNode;
}
const Fead: FC<Props> = props => {
  return (
    <CSSTransition
      in={props.visible}
      timeout={300}
      classNames="fademountOnEnter"
      unmountOnExit
    >
      {props.children}
    </CSSTransition>
  );
};

export default Fead;
